package com.xdtech.hotel.service;

import java.util.List;
import java.util.Map;

import com.xdtech.common.service.IBaseService;
import com.xdtech.hotel.model.DeviceOperation;
import com.xdtech.hotel.vo.DeviceOperationItem;

/**
 * 
 * @author max.zheng
 * @create 2015-04-23 22:10:38
 * @since 1.0
 * @see
 */
public interface DeviceOperationService extends IBaseService<DeviceOperation>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-04-23 22:10:38
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateDeviceOperation(DeviceOperationItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-04-23 22:10:38
	 * @modified by
	 * @param newId
	 * @return
	 */
	DeviceOperationItem loadDeviceOperationItem(Long deviceOperationId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-04-23 22:10:38
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteDeviceOperationInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-04-23 22:10:38
	 * @modified by
	 * @param deviceOperationIds
	 */
	boolean deleteDeviceOperationInfo(List<Long> deviceOperationIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2015-04-23 22:10:38
	 * @modified by
	 * @return
	 */
	List<DeviceOperationItem> loadItems();

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-4-25下午10:13:59
	 * @modified by
	 * @param selectOperations
	 * @return
	 */
	List<DeviceOperation> loadDeviceOperations(List<Long> selectOperations);

	/**
	 * 根据联动配置id查询关联联动列表，带自动选中
	 * @author max.zheng
	 * @create 2015-4-25下午10:29:20
	 * @modified by
	 * @param linkageId
	 * @return
	 */
	Map<String, Object> loadListByLinkageId(Long linkageId);
	
	
}
